package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2019/4/8.
 * Des:
 */
@Entity
@Table(name = "yd_team_target_record_rd_t", schema = "jshoperxms", catalog = "")
public class YdTeamTargetRecordRdT {
    private String id;
    private String fileurl;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String filetype;
    private int duration;
    private int gbiaoyang;
    private int gleafs;
    private int gscore;
    private int gruntimecount;
    private int gsharecount;
    private String fileimgs;
    private String articlecontent;
    private String authornick;
    private String authorheadimg;
    private String wxopenid;
    private int currentpublishcount;
    private String title;
    private String ispublic;
    private int gcomment;
    private String teamcategory;
    private String teamcategoryid;
    private String recommend;
    private String draft;
    private String teamid;
    private int gfollowreadingcount;
    private String memberid;
    private String targettype;
    private String dotargetyear;
    private String dotargetmonth;
    private String dotargetday;
    private String dotargetdate;
    private String targetid;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FILEURL", nullable = false, length = 500)
    public String getFileurl() {
        return fileurl;
    }

    public void setFileurl(String fileurl) {
        this.fileurl = fileurl;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "FILETYPE", nullable = false, length = 45)
    public String getFiletype() {
        return filetype;
    }

    public void setFiletype(String filetype) {
        this.filetype = filetype;
    }

    @Basic
    @Column(name = "DURATION", nullable = false)
    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Basic
    @Column(name = "GBIAOYANG", nullable = false)
    public int getGbiaoyang() {
        return gbiaoyang;
    }

    public void setGbiaoyang(int gbiaoyang) {
        this.gbiaoyang = gbiaoyang;
    }

    @Basic
    @Column(name = "GLEAFS", nullable = false)
    public int getGleafs() {
        return gleafs;
    }

    public void setGleafs(int gleafs) {
        this.gleafs = gleafs;
    }

    @Basic
    @Column(name = "GSCORE", nullable = false)
    public int getGscore() {
        return gscore;
    }

    public void setGscore(int gscore) {
        this.gscore = gscore;
    }

    @Basic
    @Column(name = "GRUNTIMECOUNT", nullable = false)
    public int getGruntimecount() {
        return gruntimecount;
    }

    public void setGruntimecount(int gruntimecount) {
        this.gruntimecount = gruntimecount;
    }

    @Basic
    @Column(name = "GSHARECOUNT", nullable = false)
    public int getGsharecount() {
        return gsharecount;
    }

    public void setGsharecount(int gsharecount) {
        this.gsharecount = gsharecount;
    }

    @Basic
    @Column(name = "FILEIMGS", nullable = false, length = 5000)
    public String getFileimgs() {
        return fileimgs;
    }

    public void setFileimgs(String fileimgs) {
        this.fileimgs = fileimgs;
    }

    @Basic
    @Column(name = "ARTICLECONTENT", nullable = false, length = 5000)
    public String getArticlecontent() {
        return articlecontent;
    }

    public void setArticlecontent(String articlecontent) {
        this.articlecontent = articlecontent;
    }

    @Basic
    @Column(name = "AUTHORNICK", nullable = false, length = 100)
    public String getAuthornick() {
        return authornick;
    }

    public void setAuthornick(String authornick) {
        this.authornick = authornick;
    }

    @Basic
    @Column(name = "AUTHORHEADIMG", nullable = false, length = 500)
    public String getAuthorheadimg() {
        return authorheadimg;
    }

    public void setAuthorheadimg(String authorheadimg) {
        this.authorheadimg = authorheadimg;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "CURRENTPUBLISHCOUNT", nullable = false)
    public int getCurrentpublishcount() {
        return currentpublishcount;
    }

    public void setCurrentpublishcount(int currentpublishcount) {
        this.currentpublishcount = currentpublishcount;
    }

    @Basic
    @Column(name = "TITLE", nullable = false, length = 500)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "ISPUBLIC", nullable = false, length = 2)
    public String getIspublic() {
        return ispublic;
    }

    public void setIspublic(String ispublic) {
        this.ispublic = ispublic;
    }

    @Basic
    @Column(name = "GCOMMENT", nullable = false)
    public int getGcomment() {
        return gcomment;
    }

    public void setGcomment(int gcomment) {
        this.gcomment = gcomment;
    }

    @Basic
    @Column(name = "TEAMCATEGORY", nullable = false, length = 100)
    public String getTeamcategory() {
        return teamcategory;
    }

    public void setTeamcategory(String teamcategory) {
        this.teamcategory = teamcategory;
    }

    @Basic
    @Column(name = "TEAMCATEGORYID", nullable = false, length = 25)
    public String getTeamcategoryid() {
        return teamcategoryid;
    }

    public void setTeamcategoryid(String teamcategoryid) {
        this.teamcategoryid = teamcategoryid;
    }

    @Basic
    @Column(name = "RECOMMEND", nullable = false, length = 1)
    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    @Basic
    @Column(name = "DRAFT", nullable = false, length = 1)
    public String getDraft() {
        return draft;
    }

    public void setDraft(String draft) {
        this.draft = draft;
    }

    @Basic
    @Column(name = "TEAMID", nullable = false, length = 25)
    public String getTeamid() {
        return teamid;
    }

    public void setTeamid(String teamid) {
        this.teamid = teamid;
    }

    @Basic
    @Column(name = "GFOLLOWREADINGCOUNT", nullable = false)
    public int getGfollowreadingcount() {
        return gfollowreadingcount;
    }

    public void setGfollowreadingcount(int gfollowreadingcount) {
        this.gfollowreadingcount = gfollowreadingcount;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "TARGETTYPE", nullable = false, length = 1)
    public String getTargettype() {
        return targettype;
    }

    public void setTargettype(String targettype) {
        this.targettype = targettype;
    }

    @Basic
    @Column(name = "DOTARGETYEAR", nullable = false, length = 45)
    public String getDotargetyear() {
        return dotargetyear;
    }

    public void setDotargetyear(String dotargetyear) {
        this.dotargetyear = dotargetyear;
    }

    @Basic
    @Column(name = "DOTARGETMONTH", nullable = false, length = 45)
    public String getDotargetmonth() {
        return dotargetmonth;
    }

    public void setDotargetmonth(String dotargetmonth) {
        this.dotargetmonth = dotargetmonth;
    }

    @Basic
    @Column(name = "DOTARGETDAY", nullable = false, length = 45)
    public String getDotargetday() {
        return dotargetday;
    }

    public void setDotargetday(String dotargetday) {
        this.dotargetday = dotargetday;
    }

    @Basic
    @Column(name = "DOTARGETDATE", nullable = false, length = 45)
    public String getDotargetdate() {
        return dotargetdate;
    }

    public void setDotargetdate(String dotargetdate) {
        this.dotargetdate = dotargetdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdTeamTargetRecordRdT that = (YdTeamTargetRecordRdT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (duration != that.duration) return false;
        if (gbiaoyang != that.gbiaoyang) return false;
        if (gleafs != that.gleafs) return false;
        if (gscore != that.gscore) return false;
        if (gruntimecount != that.gruntimecount) return false;
        if (gsharecount != that.gsharecount) return false;
        if (currentpublishcount != that.currentpublishcount) return false;
        if (gcomment != that.gcomment) return false;
        if (gfollowreadingcount != that.gfollowreadingcount) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (fileurl != null ? !fileurl.equals(that.fileurl) : that.fileurl != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (filetype != null ? !filetype.equals(that.filetype) : that.filetype != null) return false;
        if (fileimgs != null ? !fileimgs.equals(that.fileimgs) : that.fileimgs != null) return false;
        if (articlecontent != null ? !articlecontent.equals(that.articlecontent) : that.articlecontent != null)
            return false;
        if (authornick != null ? !authornick.equals(that.authornick) : that.authornick != null) return false;
        if (authorheadimg != null ? !authorheadimg.equals(that.authorheadimg) : that.authorheadimg != null)
            return false;
        if (wxopenid != null ? !wxopenid.equals(that.wxopenid) : that.wxopenid != null) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (ispublic != null ? !ispublic.equals(that.ispublic) : that.ispublic != null) return false;
        if (teamcategory != null ? !teamcategory.equals(that.teamcategory) : that.teamcategory != null) return false;
        if (teamcategoryid != null ? !teamcategoryid.equals(that.teamcategoryid) : that.teamcategoryid != null)
            return false;
        if (recommend != null ? !recommend.equals(that.recommend) : that.recommend != null) return false;
        if (draft != null ? !draft.equals(that.draft) : that.draft != null) return false;
        if (teamid != null ? !teamid.equals(that.teamid) : that.teamid != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;
        if (targettype != null ? !targettype.equals(that.targettype) : that.targettype != null) return false;
        if (dotargetyear != null ? !dotargetyear.equals(that.dotargetyear) : that.dotargetyear != null) return false;
        if (dotargetmonth != null ? !dotargetmonth.equals(that.dotargetmonth) : that.dotargetmonth != null)
            return false;
        if (dotargetday != null ? !dotargetday.equals(that.dotargetday) : that.dotargetday != null) return false;
        if (dotargetdate != null ? !dotargetdate.equals(that.dotargetdate) : that.dotargetdate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (fileurl != null ? fileurl.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (filetype != null ? filetype.hashCode() : 0);
        result = 31 * result + duration;
        result = 31 * result + gbiaoyang;
        result = 31 * result + gleafs;
        result = 31 * result + gscore;
        result = 31 * result + gruntimecount;
        result = 31 * result + gsharecount;
        result = 31 * result + (fileimgs != null ? fileimgs.hashCode() : 0);
        result = 31 * result + (articlecontent != null ? articlecontent.hashCode() : 0);
        result = 31 * result + (authornick != null ? authornick.hashCode() : 0);
        result = 31 * result + (authorheadimg != null ? authorheadimg.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + currentpublishcount;
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (ispublic != null ? ispublic.hashCode() : 0);
        result = 31 * result + gcomment;
        result = 31 * result + (teamcategory != null ? teamcategory.hashCode() : 0);
        result = 31 * result + (teamcategoryid != null ? teamcategoryid.hashCode() : 0);
        result = 31 * result + (recommend != null ? recommend.hashCode() : 0);
        result = 31 * result + (draft != null ? draft.hashCode() : 0);
        result = 31 * result + (teamid != null ? teamid.hashCode() : 0);
        result = 31 * result + gfollowreadingcount;
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + (targettype != null ? targettype.hashCode() : 0);
        result = 31 * result + (dotargetyear != null ? dotargetyear.hashCode() : 0);
        result = 31 * result + (dotargetmonth != null ? dotargetmonth.hashCode() : 0);
        result = 31 * result + (dotargetday != null ? dotargetday.hashCode() : 0);
        result = 31 * result + (dotargetdate != null ? dotargetdate.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "TARGETID", nullable = false, length = 25)
    public String getTargetid() {
        return targetid;
    }

    public void setTargetid(String targetid) {
        this.targetid = targetid;
    }
}
